<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>快递追踪</title>
<link href="../public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function changbackgroundcolor() {
		var trs = document.getElementById("table1").getElementsByTagName("tr");
		for ( var i = 0; i < trs.length; i++) {
			if (i == 0) {
				trs[i].style.backgroundColor = "#F3E9FF";
			} else if (i % 2 == 0) {
				trs[i].style.backgroundColor = "#F2F3FF";
			} else {
				trs[i].style.backgroundColor = "#FFFFFF";
			}
		}
	}
</script>
</head>

<body onLoad="changbackgroundcolor();">
	<{include file="head_cn.html"}>
	<div class="c960">
		<div class="con960">


			<div class="sycon">
				<div class="syleft">
					<div class="lxwm">
						<div class="fuwulist">
							<ul>
								<li class="fuwuti">快递服务</li> <{foreach item=loop
								from=$express_list}>
								<li
									class="<{if $cat_name==$loop.cat_name}>fuwutiaon<{else}>fuwutia<{/if}>"><a
									href="<{if $loop.cat_name=='Express Tracking'}>tracing<{else}>express<{/if}>.php?charset=cn&cat_name=<{$loop.cat_name}>"><{$loop.cat_name_en}></a></li>
								<{/foreach}>
							</ul>
						</div>

					</div>
					<form action="tracing.php?charset=cn&cat_name=Express Tracking"
						method="post">
						<div class="syleftbotzw">
							<input type="text" name="code" id="textfield" class="track-kg" />
							<input type="submit" class="track-an" value="搜索" />
						</div>
					</form>
				</div>
				<div class="hyright">
					<div class="ddcxt">

						<form action="tracing.php?charset=cn&cat_name=Express Tracking"
							method="post">
							<div class="ddcxtleft">
								<div class="ddcxtltop">快件查询</div>
								
								<div class="ddcxbg">
									<div class="ddcxti">请输入快件单号</div>
									<div class="ddcxti2">查询多个运单请用空格,逗号或者分号分隔</div>
									<div class="ddcxkg">
										<input name="code" type="text" class="ddxc-kg" />
									</div>
									<div class="ddcx-an">
										<label> <input type="submit" name="button" id="button"
											value="搜索" class="aaaa" />
										</label>
									</div>
								</div>
							</div>
						</form>
						<div class="ddcxtright">
							<img src="<{$src}>" />
						</div>
					</div>
					<!-- result -->
					<{if $latest == null}>
					<div class="ddcxtlerror">
						<b>快件单号:<{$id}></b>
					</div>
					<div class="ddcxtlerror">没有您查询的信息,请输入正确的快件单号!</div>
					<{/if}>
					<div class="syright">
						<{if $latest.orderId}>
						<div class="newscon">
							<div class="newsbt">快件单号: <{$latest.orderId}></div>
						</div>
						<div class="sy-status">

							<table>
								<tr>
									<td><b>出发地:<{$latest.origin}></b></td>
								</tr>
								<tr>
									<td><b>到达地:<{$latest.destination}></b></td>
								</tr>
								<tr>
									<td><b>物品件数 :<{$latest.items}></b></td>
								</tr>
								<{if $latest.status =="ongoing"}>
								<tr>
									<td><b>状态:运送中</b></td>
								</tr>
								<{/if}> <{if $latest.status =="completed"}>
								<tr>
									<td><b>状态:已送达</b></td>
								</tr>
								<tr>
									<td><b>完成时间:<{$latest.completeTime}></b></td>
								</tr>
								<{if $latest.receiver !=" " && $latest.receiver != ""}>
								<tr>
									<td><b>签收人:<{$latest.receiver}></b></td>
								</tr>
								<{/if}> <{/if}>
							</table>
						</div>

						<table width="100%" height="10px">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table id="table1" class="tableb">
							<tr>
								<th>时间</th>
								<th>地点</th>
								<th>详情</th>
							</tr>
							<{foreach item=loop from=$list}>
							<tr height="25px">
								<th width="25%"><{$loop.time}></th>
								<th width="18%" align=left><{$loop.location}></th>
								<th align=left><{$loop.detail}></th>
							</tr>
							<{/foreach}>

						</table>
						<table width="100%" height="10px">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<{$page_nav}> <{/if}>
					</div>
				</div>
			</div>
		</div>
		<{include file="foot_cn.html"}>
	</div>
	</div>
</body>
</html>
